﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Equipment.DataAccess" %>
<table class="data-table">
    <tr>
        <th>
            Requirements
        </th>
        <th>
            AssetType
        </th>
        <th>
            Frequency
        </th>
        <th>
        </th>
    </tr>
    <% For Each item As Requirement In ViewData("Requirements")%>
    <tr>
        <td>
            <%: item.Name %>
        </td>
        <td>
            <%: item.AssetType.Description%>
        </td>
        <td>
            <%= Requirement.GetFrequencyDescriptionByType(item.FrequencyType)%>
        </td>
        <td>
            <%: Html.ActionLink("Edit", "Edit", New With {.id = item.ID})%>
        </td>
    </tr>
    <% Next%>
</table>
